package cn.virens.database.service.sys;

import com.github.pagehelper.PageInfo;

import cn.virens.database.common.BaseService;
import cn.virens.database.mysql.model.sys.SysMessage;
import cn.virens.exception.APIException;

public interface SysMessageService extends BaseService<SysMessage> {

	/**
	 * 消息阅读
	 * 
	 * @param id
	 * @return
	 * @throws APIException
	 */
	SysMessage read(Integer id) throws APIException;

	/**
	 * 获取推送消息
	 * 
	 * @param account
	 * @return
	 */
	PageInfo<SysMessage> notifications(String account);
}
